/**
 * weiyinli.com Inc.
 * Copyright (c) 2006-2011 All Rights Reserved.
 */
package com.nmp.persistence.dao;

import org.springframework.stereotype.Repository;

import com.nmp.persistence.dao.base.BaseJdbcDao;
import com.nmp.persistence.entity.Demo;

/**
 * 演示
 * @author defier.lai
 * 2011-9-27 上午12:13:56
 * @version 1.0
 */
@Repository
public class DemoDao extends BaseJdbcDao {

	public void save(Demo demo) {
		String sql = "insert into demo (name, created_at) values (?, ?)";
		getJdbcTemplate().update(sql, new Object[]{demo.getName(), demo.getDate()});
	}

}
